module.exports = (req, res, next) => {
    //获取客户端传递过来的cookie
    const {
        userId,
        userName
    } = req.body
    console.log(cookie)
    if (userId && userName) {
        res.json({
            status: 200,
            msg: '',
            data: cookie
        })
    } else {
        res.json({
            status: 400,
            msg: '请先登录亲！！！',
            data: ''
        })
    }
}